package cn.ex.org.mapper;

import cn.ex.basic.mapper.BasicMapper;
import cn.ex.org.domain.Shop;
import cn.ex.org.vo.ShopVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yaosang
 * @since 2022-06-12
 */
public interface ShopMapper extends BasicMapper<Shop> {
    /**
     * 根据店铺名查询
     * @param name
     * @return
     */
    Shop loadByName(String name);

    /**
     * 查询所有店铺的审核状态数量
     * @return
     */
    List<ShopVo> queryEcharts();

    /**
     * 导入报表，完成批量新增店铺
     * @param shops
     */
    void batchSave(List<Shop> shops);
}
